Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Caddyfile syntax broken in 2.7.4 #405

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Fix: Caddyfile syntax broken in 2.7.4 #405

merged 1 commit into from
Sep 19, 2023

Conversation

hoh
Copy link
Member

@hoh hoh commented Sep 18, 2023

The syntax of the Caddyfile documented in the quick install guides is broken in Caddy 2.7.4.

This removes the unused on_demand section from the configuration, restoring compatibility with newer versions of Caddy.

We maintain the on_demand_tls section in case we may re-enable wildcard domains on the default config.

{
        on_demand_tls {
                interval 60s
                burst 5
        }
}
brain01.crn.alephians.com:443 {
-        tls {
-              on_demand
-        }
        reverse_proxy http://127.0.0.1:4020 {
                # Forward Host header to the backend
                header_up Host {host}
        }
}

The syntax of the Caddyfile documented in the quick install guides is broken in Caddy 2.7.4.

This removes the unused `on_demand` section from the configuration, restoring compatibility with newer versions of Caddy.

We maintain the `on_demand_tls` section in case we may re-enable wildcard domains on the default config.
@hoh hoh merged commit 2b39b16 into main Sep 19, 2023
11 of 12 checks passed
hoh added a commit that referenced this pull request Mar 12, 2024
The syntax of the Caddyfile documented in the quick install guides is broken in Caddy 2.7.4.

This removes the unused `on_demand` section from the configuration, restoring compatibility with newer versions of Caddy.

We maintain the `on_demand_tls` section in case we may re-enable wildcard domains on the default config.
@Psycojoker Psycojoker deleted the hoh-fix-caddyfile branch July 24, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants